| Conditions | 2 |
| Total Lines | 15 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import React, {Component} from 'react'; |
||
| 35 | |||
| 36 | render() { |
||
| 37 | // console.log(this.props); |
||
| 38 | let editUrl; |
||
| 39 | |||
| 40 | if (auth.token !== "") { |
||
| 41 | editUrl = <Link className='button' to={`/reports/edit/${this.props.match.params.number}`}>Edit</Link>; |
||
| 42 | } |
||
| 43 | |||
| 44 | return ( |
||
| 45 | <main> |
||
| 46 | <h3>Kmom {this.props.match.params.number}</h3> |
||
| 47 | <p>{editUrl}</p> |
||
| 48 | <article dangerouslySetInnerHTML={{__html: this.state.data}}></article> |
||
| 49 | </main> |
||
| 50 | ); |
||
| 54 | export default Report; |